package com.fesine.ch02.t9;

import java.util.ArrayList;
import java.util.List;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/7/5 9:17
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/7/5 9:17
 */
public class MyOneList {
    private List list = new ArrayList();

    synchronized public void add(String data) {
        list.add(data);
    }

    synchronized public int getSize() {
        return list.size();
    }
}
